Improve transaction events

Improve transaction events to add POST and PRE transaction events.