Changed register action to component.