filter by category with tricky paginating thing