added activity indicator during API calls