Modified the panel code to only take effect on a singular view.