Needed changes for first part of Tabs and Dialogs
Added support for changing if dialog is closable and commented out check for inDom for closing Tabs