fixed events and creat events UI