edit function implemented