Make the log window work