Properly build UI.