Moved all listeners to a special class.
UIComponents are stored in a map that is kept as a field in the listeners wrapper.