changed list of documents to return all documents, will improve later to page them