Renamed member variable (editor -> view)
Separated out the view into an interface and implementation and injected the view via the constructor.