progressDialog added, errorHandler added