move render_template to new router
move render_frontpage to new router
move event page and json to new router