prepare for resize events
rerender on resize