working out the nav bar