some skeleton code in ui.js