adding state event