added window resize outside of ready