refactoring navbars to include top and main navbars