refactor nav menu