dynamic nav bar works