add current and previous documents to currentDocumentChange event