[xas-viewer] several fix to handle all the data format and the update of display when parameters change