Use layout attributes on header-panel example

I've added layout attributes to this example to make it a bit tidier. @ebidel @arthurevans wdyt?
Does this change the screen below? Think the answer is no, but just checking.