updates spectrum when selecting a new channel. Nicer flow thanks to additional function that reads the data for spectrum
nicer handling of spectrum, more robust now
show events only inside the window, and don't crash if scoring is not available