configuration_dialog: WM_INITDIALOG handling is going to be complex, moved it into separate method.