fix initial display range n XRF display, other tweaks