PreferencePanel now functional, and pretty code!