added View.php and added resource in Model.php