extract menu to external template