Minor fixes

Proof of concept or resizing the canvas
Minor fixes

Starting to use styles for the various click events n the legend box