added window resize function