Minor edits to index/views.py