setting scales from activity