working downloadAgent and ProgressBar