Trying to fix scaling for resizing window