Add in event listeners for HeaderElement events.

Implement render method, which shows what the header should look like after every state change.