use render to replace the erb render