Fixed a bug that didn't hide the ribbon property when it must be hidden again when clicking somewhere in the window.
Starting with adding the legend.