update scale and extent