adedd a TransactionEventHandler to track changes in the graph