configure app scale and viewport