implement state method of anomaly and add messages support in the anomaly editor