base structure for infinite scroll feature