move onresize to rootScope to resize graphs when single widget page changes size