Add some logic to put multiple charts on one page