linking chat to notes and fixing formatting