modified Views.py