add location callback in event class