Update entire document