added helper-functions to update the GUI.