Changed scrolling pages to  pagination