set initial scale and devise width