api:wm: refactor native menu