added modified-state on document-change