Menus are now generated by using templates, but improvements are needed