Fix typo
Extract method for show message dialog