update the code-editor