updated plot.ly generation