Update viewerController.php