Updated the main.py according othe index page