make adapter handle editing records