added gethistory ajax url to app.py