moved this to root scope so that on resize on the single widget page it redraws the graphs