Upgrade Codemirror and UI Fixes