Altered main.py layout and index template