Updated the viewport