Finish complete UI: add tests and documentation.

* Fix spacing issues.
* Reformat dashboard a bit to make everything fit.