make nav bar works