changed layout for grid