Moved UI components from app.js to ui.js