added refreshOnResize attribute - window resize event listener