Moving PanelController to panel extension.