Added infinite scroll for main pages