added row based layout to php output