Modified views.py, changed html to class based view