changes to make it work in FD
add CodeMirror