CLIENT SIDE PAGINATION FUNCTIONALITY Keep track of current page If you click previous button at the start page, go to last page If you click next button at the last page, go to first page