replacing form definition loading thread with AsyncTask