Adding infinite scrolling to the patients table