update scale on resize