working version of details, very basic