she doesn't have to switch back to h4 to legally stay here. her AOS is fine and she can use her EAD for a new job.However, if she prefers to have her H4 back, she has to leave the US to resume her H4