wrap message from, to with span
put connect button manage codes into a function