Refactor buildLogToFileButton so button label changes for start/stop