adjust the navigation bar layout