Added view render functionality