refactor nav bar