Added new, useful hooks in views.py