Event handling works now

- Still there is a problem with the clearing of the events.
- Goodies are missing.