Refactor navbar.