Added pagination to index.php