add editing a record feature