update views.py so it works