retain selection and dialog on change config