changed layout to a grid definition layout