Is there a reason you are both initialising the UI (ui.setupUI) and creating your own widgets? As stated previously, you would normally let the setupUI create all your widgets for you, and if you don't want that, you would remove the references to the UI namespace.