updated the triggers to take the actual event instead of just the code.
style change in the LoadingState