appended ready event in ui.js