add event and dom