add maxlength-1000, add ajax