dialog show/hide should be done in AsyncTask