Added missing UiFactory method.

Fixes #228