Updated templates and views.py
Updated views.py and templates.