fixing typo in custom event
Inline docs for modal dialog