trying to properly handle click events on lineages in the code viewer