refactored menu template