remove separate window for presenting modals and instead put dimming view as a subview of the apps main window