set edit data when a edit is made