Formated source
Cleaned source
Setting the correct enable/disable state of the energy combo box.
Formated source
Fixing update bug with mad energies in details tab.