update trigger in controllers