added auto-creation of new document, with changes input