removed gui.update from main class