public function actionCreate()
    {
        $model = new TaxonomyVocabulary(['scenario' => 'admin-create']);
        $statusArray = TaxonomyVocabulary::statusLabels();

        if ($model->load(Yii::$app->request->post())) {
            if ($model->validate()) {
                if ($model->save(false)) {
                    return $this->redirect(['update', 'id' => $model->id]);
                } else {
                    Yii::$app->session->setFlash('danger', Manager::t('admin', 'Failed to create a vocabulary'));
                    return $this->refresh();
                }
            } elseif (Yii::$app->request->isAjax) {
                Yii::$app->response->format = Response::FORMAT_JSON;
                return ActiveForm::validate($model);
            }
        }

        return $this->render('create', [
            'model' => $model,
            'statusArray' => $statusArray
        ]);
    }