add window resize hooks