Refactoring of domain config dialog