minor cleanup of panel.