adding a button to plot the results