Created ui_item object and related functions.