changing window resize behavior