replace view() with render()