Refactor LogWidgets to use UIs.