render in ui.js