Split the MainTable class and the MainTableModel class