add pagination funcionality on patients page