Added events to UI, had to change many class modifiers to public