code: private void buildUI() {
  		add(new WSkipLinks());
  
  		// the application header
  		add(headerPanel);
  		headerPanel.add(new UtilityBar());
  		headerPanel.add(new WHeading(HeadingLevel.H1, "WComponents"));
  
  		// mainPanel holds the menu and the actual example.
  		add(mainPanel);
  		mainPanel.add(menuPanel);
  		mainPanel.add(exampleSection);
  
  		// An application footer?
  		WPanel footer = new WPanel(WPanel.Type.FOOTER);
  		footer.add(lastLoaded);
  		add(footer);
  		add(new WAjaxControl(menuPanel.getTree(), new AjaxTarget[]{menuPanel.getMenu(), exampleSection}));
  	}
docs: Add all the bits in the right order.