Update document content