add render_mode into render hash