removed console.log & parts of table.php that were redundant