redraw chart and grid based on page