Split UI into a lower- and upper-level file.  Made a quick makefile.