fixing toggle issues with children