modified plotly demo