create event handler, simple message boxes