now working automated sync, TODO: refreshing of GUI elements