pagination now works nicely, can add search later