fixed wonkiness in views.py