update in class MainGui