added update confirmation condition