fixing polling interval reset on window resize