added reflow event listener