grid to table in main layout