Navigating to MainPageController.