mostly refactoring dom on the menu and login pages