adding childActive to a state instead of just active