Adjusting the navigation bar according to the new layout