Cleaned up some parts of the View class.