adding pagination to patient list view