Update the spectra without waiting for the OK button
cleaning
Refactor view manipulation