redirect index to background page
removed debug=True and threaded=True on the flask options for heroku