added (buggy) window resize handling