Code refactored of delete row feature from data tabel