moved the AsyncTask to onResume