Added window resize listener