refactored nav bar