trigger updated of sidebar legend on click