restoring progressBar during execution