Update views.py change function views to Class views