refactoring around PrefDialog