small update for onresize