Add docstrings to views.py