adding progress bar when searching