added update viewport call