Replace table with grid