add code to handle window resize