Updated and Fixed Views.py