Moved all UI components from app.js to ui.js