Usability and behaviour improvements to dialog.