Why does my widget work in layout files but not view files?

I have a widget which works fine when I add it to a layout file such as main.php however when I add it do a view file, it displays however on submit it to my index rather than the form action URL that I manually set in my widget view and has no validation.

Here is my widget view


<?php

use yii\helpers\Html;

use yii\bootstrap\ActiveForm;


?>

        <?php $form = ActiveForm::begin(['action' => '/newsletter/newslettersignup',]); ?>

	

        <?= $form->field($model, 'email')->textInput(array('placeholder' => 'Enter Email Address'))->label(false) ?>


        <div class="form-group field-newsletter-buttom">

            <?= Html::submitButton(Yii::t('app', 'Join Now'), ['class' => 'newsletter-btn', 'name' => 'login-button']) ?>

        </div>


   <?php ActiveForm::end(); ?>

UPDATE

It seemed to be the placement of my widget, if I placed it at the bottom everything works fine. Could be because i previously placed it above my list widget.