codemirror hooked up, checking roles for editing
work in progress