some additions to API and a document update view