window fixes. trying to speed up resizing