adding support for modal dialogs and other changes