using headerCtrl to manage navbar.