window resize code removed