working on editor and doc display