added ability to scale a view