Insert correct command into onPreferenceTreeClick