updating the GUI