added ability to cancel a pending transaction