Yii 2.0 widget implementation

Updated implementation for Yii 2.0