Added a directive for a modal dialog.