xtend ready event refact