added inital logic for navigation bar in base controller