rest/menu php refactor done