add deop possibility for main window