add component.toggleState