Instead of defining all of the data-panels here and naming them in each item in the list, can't you iterate over the list elements and grab the data-subpanel from each? Then we wouldn't have to define the names twice.