diff --git a/api_webchat/controller.js b/api_webchat/controller.js
index 966ba824..83a475e0 100644
--- a/api_webchat/controller.js
+++ b/api_webchat/controller.js
@@ -1,3 +1,27 @@
+/*
+ * ThunderAI [https://micz.it/thunderbird-addon-thunderai/]
+ * Copyright (C) 2024 Mic (m@micz.it)
+
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ *
+ * This file contains a modified version of the code from the project at https://github.com/boxabirds/chatgpt-frontend-nobuild
+ * The original code has been released under the Apache License, Version 2.0.
+ */
+
+
+
// The controller wires up all the components and workers together,
// managing the dependencies. A kind of "DI" class.
const worker = new Worker('model-worker.js', { type: 'module' });
diff --git a/api_webchat/messageInput.js b/api_webchat/messageInput.js
index 7088eb07..358e3cc2 100644
--- a/api_webchat/messageInput.js
+++ b/api_webchat/messageInput.js
@@ -1,3 +1,26 @@
+/*
+ * ThunderAI [https://micz.it/thunderbird-addon-thunderai/]
+ * Copyright (C) 2024 Mic (m@micz.it)
+
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ *
+ * This file contains a modified version of the code from the project at https://github.com/boxabirds/chatgpt-frontend-nobuild
+ * The original code has been released under the Apache License, Version 2.0.
+ */
+
+
const messageInputTemplate = document.createElement('template');
const messagesInputStyle = document.createElement('style');
diff --git a/api_webchat/messagesArea.js b/api_webchat/messagesArea.js
index 313dda59..ae96981e 100644
--- a/api_webchat/messagesArea.js
+++ b/api_webchat/messagesArea.js
@@ -1,3 +1,26 @@
+/*
+ * ThunderAI [https://micz.it/thunderbird-addon-thunderai/]
+ * Copyright (C) 2024 Mic (m@micz.it)
+
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ *
+ * This file contains a modified version of the code from the project at https://github.com/boxabirds/chatgpt-frontend-nobuild
+ * The original code has been released under the Apache License, Version 2.0.
+ */
+
+
const messagesAreaTemplate = document.createElement('template');
const messagesAreaStyle = document.createElement('style');
diff --git a/api_webchat/model-worker.js b/api_webchat/model-worker.js
index dfa3d370..3afa6d85 100644
--- a/api_webchat/model-worker.js
+++ b/api_webchat/model-worker.js
@@ -1,3 +1,26 @@
+/*
+ * ThunderAI [https://micz.it/thunderbird-addon-thunderai/]
+ * Copyright (C) 2024 Mic (m@micz.it)
+
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ *
+ * This file contains a modified version of the code from the project at https://github.com/boxabirds/chatgpt-frontend-nobuild
+ * The original code has been released under the Apache License, Version 2.0.
+ */
+
+
import { OpenAI } from '../js/api/openai.js';
let api_key_chatgpt = null;