Improved tabs. Moved most of events outside of SketchEditor.js