Changes to view.py