added AsyncTask to add progress bar