Replace the programmatically UI with XHTML UI.