add table in mainpanel