pass gridlayout to tablelayout