update the sub component