diff --git a/templates/index.html b/templates/index.html
index 6a04fff..cd3300e 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -74,7 +74,7 @@
document.getElementById('searchForUser').addEventListener('submit', function(event) {
- event.preventDefault();
+ event.preventDefault(); // Prevent the default form submission which causes page reload
const query = document.getElementById('searchUser').value;
fetch(`/search?query=${encodeURIComponent(query)}`)
.then(response => response.json())