Select the relation when the label of the relation is clicked.