add scale to the view class