changed layout to an inline grid layout