added window resize directive