modified view.py