modal dialog is displaying correctly