close mainw on no tabs
ready to fix compat switch