added a parent Class to deal with activity indicator and NSURLConnection delegate methods