update setData method in table model