add event hook to init UI