adjustments to chat to apply the click event for URLs, fixes #49