add code to display a success message