use render instead of renderView