1. move handling of widget-editor for overlaymanager to widget_editor.js

2. fix video element issues
3. fix a regression caused by previous refactoring