changes to views.py