adding spinner and changes to scatter plot