add the document detail