add codemirror and ui