adding event handles