Changed the View class, to make access to the view easier