the code is still in a mess (needs MAJOR refactoring) but now can edit an envelope, move an envelope transaction and delete an envelope transaction