hook up buttons to log message