fix window delete; change tabs