updated app/views.py