Added ugly GUI for handling when events