Make handleEvent public in Widget