update scale on view change