refactoring, templates header + main menu