update codemirror & console