add message dialog to show the statistics