sync the document when adding.
added pager at GroupedDocumentsView