refactored whole widget-editor-menu