DRY panel toggle