It would be good to add a couple unit tests for this that verify it works on a test file. The tests are in:

    core/src/test/scala/spark/ui/UISuite.scala