Added pagination for categories