edit transaction works properly