Working except the detail selection