created paging functionality
committing again after pageView