add support for dialogs