Add template for PreferencesDialog.