enable refresh on resize