set view and render it