changes to categories controller