UI improvements to text dialog.