Added NavBarCtrl controller for page switching.