Further fixes to dashboard.js to make it only modify panels that are direct descendants of the dashboard container