Add support for editing transactions

Still haven't run this. Hope it works.