Edit format: onEvent to event