Page reshuffle and infinite scroll added to index.php