Add dialog directive.