add controls for plot
implement plot