add maxlength to message textarea, minor changes