- avoid possible crash in TD dialogs if app closed while dialog in progress.
- fix dialog layout (was broken for Windows) and simplify it - enable so immediately the changes you make in the dialog -> necessary to fine-tune the right position