set event on status change