add template process in index.html and view.py