Added tracing to V2 WebApp and fixed potential issue in d3 code