Beautify some code as coding standard.
Gridlist settings now load, when leave preferences.