Added support for "handleEvent"

forgot to remove console.log