move stuff from editor.el to ux.el