Improvements to the preferences window.