seperate resize hander into onload handler, resize handler, orientationchange handler