Added View class and sub render logic.