add auto-populate feature to  invoice table after a deletion