rework config dialog