implemented infinite scroll on the index page