add progressbar and progressdialog