Small changes in views.py