reverted views.py changes