reverted changes in views.py from commit 419e32daa5090e82abfa4f1c3c21c52a0348013d