refactored NavBar and basic app navbar.