fixing the sync so it concatenates all messages first and parses on close as well as some styling