Allowed switch_to_frame() to switch back to parent html

 fixed switch_to_frame() function as it doesn't allow switching back to parent frame. $session->frame did but its better to standardize using switch_to_frame().