changed viewport to medium-dpi instead of device