updated index for charts, pep8 formatting on views.py