integrated apptable into app.js