AddServiceDialog: refactoring