inifinite pagination throgh pages and singleview

various fixes and added functionality with infinite pagination through
pages and singleview.