Make controller for prefs dialog