update to viewport