adds click event to chat module