updates codemirror modes