Update document for view-mode