Run `displayData` when the transaction has become complete

So that new items appear instantly after creating them