Added reflow hook into window resize