Refactored UiBuilder elements creation