improved layout of detail.xml