make legend open initially