unregister devtool panel on destroy (and destroy all registered panels on unload)
minor refactor set attributes on inner and outer frames