add pagination to categories (10 per) and published limitation and sorting