Correction of the preference view in several modules. New menubar in the viewer to edit, save and load preferences