engine: added rerender on resize