Update document