Added updateGUI method