added the modal component and getted all documents of db