add eventClick method