Fixed a bug in the eventsystem and made the menubuttons clickable