Add dialog to show statistics