Moved relevant compass UI components to ui.js