Moved to nav controller and added rotation.