completely moved to D3 and added smooth animations