You should change it to a `context` like: `when state change`