Added States
Changed EventData to a js over a json so variables can be used