Add remove transaction on directive with error handling