PanelViewer: delete duplicated codes