add alert box and progress bar