Pagination implementation Client.php and index.php