no longer need onresize in rootScope