Update views.py

Minor changes