Add option to configure the element inside which a dialog is added