codemirror fixes
fixes fullscreen after resize
fixes change notification navigate away dialog
Changed events to on()
polishing codemirror