Make legends on term panel clickable