Add expand/collapse functionality to details