Add window resize handlers