updating CodeMirrow