Minor changes to views.py