Some view rendering code