modify new thread to AsyncTask