render the view before rendering the layout