Creating Window Controller for Preferences