update templates and views.py