finally the nav bar works