add support for widgets in menus

this also updates handling of widgets in toolbars