refactored views.py - broken