Pass the event variable into onClick/onClose/onErrorNotification handlers