update views.py and add resetContent function in the index.html