cleaned up views.py and deleted old tests.py