fixing page scroll position, adding pagging control to bottom