Added edit function to tranasction