add code for TaskTableModel

make some fixes and improvements in the code