updated window resize callbacks