auto scale the view