Refactoring Navbar namespace