Add delegate for selection.