class MainGui contains know an actionlistener