move networking to AsyncTask