update detail layout