Remove a lot of redundancy with new method, refreshTable.