Added log message to button toggle