debug messages when button pressed/switch changed