Update views.py

Fix issues with random hangups