rewriting views.py, adding custom decorators