move all the menu related code to the menu.tt
indentation of html
simplify template
update indentation