changed showmessagedialog