Added sheet modal support for main window