Add window resize handler