diff --git a/my_flask_app.py b/my_flask_app.py
index e33416299f02be98f4bb9e9d53725f98d959eecb..0bc65db873fe68c648b957d381cdc5926621c814 100644
--- a/my_flask_app.py
+++ b/my_flask_app.py
@@ -67,11 +67,11 @@ def add_project():
         new_project = Project(title=title, description=description)
         db.session.add(new_project)
         db.session.commit()
-        return redirect(url_for('Home'))
-
-    return render_template('add_project.html', form=form)  # Pass the form to the template
 
+        flash('Project added successfully!', 'success')  # Flash success message
+        return redirect(url_for('home'))
 
+    return render_template('add_project.html', form=form)
 # Updated route for serving the 'my-cv.docx' file
 @app.route('/download_cv')
 def download_cv():