added basic inifinite scroll and content loading logic