handle the case of tabs changing not just children