added change viewport when window is resized