added progress bar for searching