Add render method to view