added PreferencePanel to be completed tonight