Added index and data for chatbox