Added an option to view all patients in a paginated way