add progress bar and modal popup