Refactoring HeaderSideMenu layout template.