handle cancel on confirm