now resize works onload too