updating the gui