Removed old code from views.py