Add update functionality to Types controller