pass the view to the ctor - helps writing unit tests