move network call to AsyncTask