added setTimeout to row deletion