Added templates and other addition to the views.py