update in class MainGui
update in class MainGui