infinite scrolling, in reply to id, and some minor refactoringe