added progress bar for getting location