Hook up chart to index page submit