change viewport for device compatibility. minor fixes.