adding in synchonization of the GUI