correcting renderPlot