improved infinite scrolling. not finished yet.