iphone rotation and navigations working properly