added legend to gui2, data parses and loads from json