add before:destroy event to controller