Implement view helper for rendering menus