add layout for detail