Made the refresh button not expand before the chart is generated.