Window can now be resized properly