implement documents showing in sortable table