Moved UI definitions to initUI