Making the basicPagination fully functional and nice-looking.