Passing dependency controller to the view