delete functionality was broken when used with multiple tables. fixed it to use addTable correctly.