update style for scale layout