added api calls to app.py