Added variable to scroll to top or not when paging