First working version of the detail panel