modal dialog improvements