add progress dialog(no test)