Data transfer HTML improved

So that if anything goes wrong in loading the JSON it displays a nice
message instead of displaying the JSON.
Further improvements to data transfer HTML