refactoring of header/menu/footer