with role/alt change, regenerate associated transaction

delete and regenerate transaction, rather than edit
fix transaction deletion when scratching slot

cache existing transaction id, set transaction=NULL,
delete cached transaction