fix linegraph and legend to highlight themselves when they publish their selected event

added loggers to many brix and replaced console.log calls