Added window resize feature