public function actionUpdateVideo($id)
    {
        $model = $this->module->manager->findVideoGalleryItemById($id);
        if ($model === null) {
            throw new NotFoundHttpException('The requested video does not exist');
        }
        $model->scenario = 'update';

        $video_gallery = $this->findModel($model->video_gallery_id);

        if ($model->load(\Yii::$app->request->post()) && $model->save()) {
            if(\Yii::$app->request->get('returnUrl')){
                $back = urldecode(\Yii::$app->request->get('returnUrl'));
                return $this->redirect($back);
            }

            \Yii::$app->getSession()->setFlash('video_gallery.success', \Yii::t('video_gallery', 'Video has been updated'));
            return $this->refresh();
        }

        return $this->render('video/update', [
            'model' => $model,
            'video_gallery' => $video_gallery
        ]);
    }