chat css html fix and write_message fix