updated data parameter to see if that fixes issue of loading JSON