updated gii to work with categories