changes for infinite scroll