update viewcontroller