showing progress bar when fetching data