Stabilized panel code, panels are created only when needed and references to can handle if panels don't exist.