alter chats endpoints and index.html