replace progressDialog by progress Bar