fix bug  and add event listener