Added update funtion to the GUI.
Added update funtion to the GUI.
Added update funtion to the GUI.
Final version