use d3 select instead of vanilla js