adding the preference window