separated edit and new document
cleaning
document types