Add pagination styling, fix bugs with next/last