Added support for input dialogs