update progressDialog for dismit when the thread have finish
update progressDialog for dismit when the thread have finish