Update detailpanel.h

make it more generic