Added global variable maxMessageLength and function changeMaxLength

call that function that sets the max length in two cases --
1)if the font size is changed (in the function that starts on like 302)
2) And when the pendant size changes -- so that's your function that
starts on line 4