Adding legend icons and floating panel