ui added some event handlers