move CheckConnection AsyncTask to separate class