make the dialog directive more accessible