Added logic to display messages