corrected event action handler