add success and fail alerts