Make legend collapsible and fixed to top right of screen