button for switching variables to plot