calling displayFn after every new transaction