basic implemention of window rerender
update window resize