added pagination to purchases
styling to pagination links
pagination implemented to categories