modified nav bar to function better