Configure the viewport