Update views.py

Added functionality views.