```javascript
if (insertBeforeContainer) {
 ThreadUI.view.insertBefore(messageContainer,
 insertBeforeContainer.previousSibling);
ThreadUI.view.insertBefore(header, messageContainer);
} else {
 ThreadUI.view.appendChild(header);
 ThreadUI.view.appendChild(messageContainer);
}
```

clearer. but will be still better with a section ;)