all the JSON functions are moved to the view controllers and it segue way's after the data is finished loading.