added infinite scroll control