changed cancel() in EventHandler