add window resize event