Change the document