Added some UI pages, fixed a few bugs.