adding table events