Initial create navigation panel.

Also clean up some UI code.