added the more flexible panel_remove