modified main layout to use simplegrid