Modified updateTable method to use new function created in the table
model. The update seems to works better.