when you click the link, in the event handler you can get the context element which you touched.
no need to change the lead selection in order to get the selected element.
if your only purpose is to the change the lead selection, you can do it after you get that context element in the event handler