Hide completed script now runs again when the sync button is pressed