added to statview class to automatically update chart on user selection, also dormant code to allow a button to do something similar