solving problem with updating or editing records