modal controller and orientation changed