Put all of the document and update Diagram