adding nextPage and prevPage function to paginator, change paginator reference to 'this' for cleanliness