tie button to charting