add listener for table insert and remove