working d3 in app on display page