adding edit button to relations