highlighting selected tract purple, defaulting to loop as selected tract, more efficient legend rendering