add flash message to show the result