redesign of adding a transaction