use unique for rows
update detail layout