Changes to index and app.py to integrate home page with flask