now repaints gui on resize, and starts at a better window size