Use progress bar instead of progress dialog for scanning