create infinite scroll controller