updated showMessage()