updated confirm popup functions