modify categories controller