moved buildTable code to picker.js. gonna split the code between picker.js and buildTable.js