add before and after trigger action controller