diff --git a/src/Python/flask/web/static/script.js b/src/Python/flask/web/static/script.js
index 1e1f33c..2499630 100644
--- a/src/Python/flask/web/static/script.js
+++ b/src/Python/flask/web/static/script.js
@@ -1,19 +1,13 @@
-document.querySelectorAll('button').forEach(button => {
- button.addEventListener('click', function() {
- const direction = this.value;
- fetch('/move', {
- method: 'POST',
- headers: {
- 'Content-Type': 'application/x-www-form-urlencoded',
- },
- body: new URLSearchParams({ direction: direction }),
- })
- .then(response => response.json())
- .then(data => {
- document.getElementById('response').innerText = data.message;
- })
- .catch(error => {
- document.getElementById('response').innerText = 'Er is een fout opgetreden: ' + error;
- });
- });
-});
\ No newline at end of file
+window.onload = function () {
+ const form = document.getElementById("form");
+ form.onclick = function (event) {
+ event.preventDefault();
+ fetch("/move", {
+ method: "GET",
+ })
+ .then((response) => {})
+ .then(() => {
+ fetch
+ });
+ };
+};
diff --git a/src/Python/flask/web/templates/index.html b/src/Python/flask/web/templates/index.html
index eb6d459..705c2ed 100644
--- a/src/Python/flask/web/templates/index.html
+++ b/src/Python/flask/web/templates/index.html
@@ -12,7 +12,7 @@