SetState added as event