set detail layout, minor improvements