add class method to create panel within an element
move click handling into ExpandablePair