fix confirm bug and add progress bar