prevent inifinte scrolling when we reach the eand of the stream