add table logic for gantt