lazily create the add dialog
avoid errors when copying string properties from the schema to the directives