added dropdown and D3 funcionality