Adding legend HTML