refactor header and menus