added alerts for rating success and failure