changing pagination to use the select element instead of a list, adding button functionality (prev, next, etc)