add primitive support for custom top-bar menus