Editing a record and its parent