adding legend and allowing clicking on points in highlighted feature