adding event to addTable button