nav bar actually functions correctly now