some ui improvements

+modal dialogs when needed
+default dialog buttons when needed
+automatic selection of the text content in some controls when needed