changed folder pop condition