the new app.py wrks fine and the URL mapping is fixed as well as get_render function