added some events to trigger on table change