add legend toggle for pcoa