UI: Fix panel toggle buttons to avoid multiple click handlers