add save document to memory