removed unnecessary lines from views.py