add event on modal open