wiring up auto detection sidebar buttons