using requirejs and UI work