setting proper viewport