DeviceControlDialog: saveState and loadState