Add viewport snippet

Now to readjust the dialog...