Refactor in Dialogs. Added dialog to show simple messages.