refactor navigation bar