Update the Document