[improvement] update API for modules to define menu items