Added window resize events