improved the preferences dialog slightly