now the the js start with app.js, separate some table operation from mainController to tableController