Implements infinity scrolling to support pagination