Create the panel before registering it.