change views.py in chathistoryindex