updated lengths of chat elements