add methods to View class