Legend oly visible after tree selection